package one_class_design.two_work;

/**
 * @author 北巷_东坡
 * @date 2022/9/16 19:54
 * @computer 10741
 */
public class School implements CompurerAverage{
    double avery,sum = 0;
    @Override
    public double average(double[] x) {
        for (int i = 0; i < x.length; i++) {
            sum += x[i];
            avery = sum / x.length;
        }

        return avery;
    }
}
